-
Notifications
You must be signed in to change notification settings - Fork 1k
Add subsection "Default Parameters for Overloaded Methods" #2646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add a subsection to [Default Parameter Values](https://docs.scala-lang.org/tour/default-parameter-values.html) as to why we can't use default parameters for more than one overloaded method. Sources: * https://groups.google.com/g/scala-user/c/FyQK3-cqfaY/m/fXLHr8QsW_0J * https://stackoverflow.com/a/10927256/16530078
Provided an example of overloaded functions with default parameters. It failed the |
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Add a subsection to Default Parameter Values as to why we can't use default parameters for more than one overloaded method. Sources: